/**
 * 密室
 */

/*列表*/
export const PrisonList = {
  data(){
    return {

    }
  },
  methods:{
    onResetForm() {
      // this.form = {}
      // this.pageFilter.pageNo = 1
      // this.pageFilter.pageSize = 10
      // this.refreshTable()
      this.$refs.ruleForm.resetFields()
    },
    onSelectedRow(keys) {
      this.selectKeys = keys
      this.isDisabled = keys.length > 0 ? false : true
    },
    onTableChange(pagination, pageFilter, sorter) {
      let keyMap = { currentPage: 'pageNo' }
      let paginations = Object.keys(pagination).reduce((newData, key) => {
        let newKey = keyMap[key] || key
        newData[newKey] = pagination[key]
        return newData
      }, {})
      this.pageFilter = Object.assign({}, this.pageFilter, paginations)
    },
  }
}
/*详情*/
export const PrisonDetails = {
  data(){
    return {

    }
  },
  methods:{

  }
}
/*编辑*/
export const PrisonEdit = {
  data(){
    return {

    }
  },
  methods:{

  }
}
/*中间方法*/
export const PrisonData = {
  data(){
    return {

    }
  },
  methods:{

  }
}